//
// see whether to submit the form or not 
// (this overrides the standard Joomla function)
//
function submitform(pressbutton) {

	var myform = document.adminForm;

	if (pressbutton) {
		myform.task.value=pressbutton;
	}

	if (typeof myform.onsubmit == "function") {
		formOK = myform.onsubmit();
	}

	// submit it if OK
//	alert("formOK = "+formOK);
	if (formOK) { myform.submit(); }

} // eof function
